

<%@page import="dao.SanPham_dao"%>
<%@page import="pojo.SanPham_pojo"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%
String masanpham = request.getParameter("masanpham");
String maloaisanpham = request.getParameter("maloaisanpham");
SanPham_pojo sp = SanPham_dao.LaySanPhamTheoMa(masanpham);
String chitiet = sp.getChiTietSanPham();
String[] ct = chitiet.split(";");
%>
<table width="100%" border="0">
  <tr>
    <td align="center" valign="top"><strong><font color="red"><h3><%=sp.getTenSanPham() %></h3></font></strong></td>
  </tr>
  <tr>
    <td height="327" align="center" valign="top"><img src="<%=sp.getImage()  %>" width="50%" height="100%" /></td>
  </tr>
  <tr>
    <td align="center" valign="top">GIÁ : <font color="red"><%=sp.getGia() %> <strong>K</strong></font></td>
  </tr>
  <tr>
    <td align="center" valign="top">KICH THƯỚC:<%=sp.getKichThuoc() %></td>
  </tr>
  <tr>
    <td align="center" valign="top"><p>CHI TIẾT SẢN PHẨM:</p>
        
      <ul>
         <%for(int i =0 ;i< ct.length;i++){ %>
        <li><%=ct[i] %></li><%}%>        
    </ul></td>
  </tr>
  <tr>
    <td align="center" valign="top"><form id="form1" name="form1" method="post" action="">
    <a href="muasanpham.jsp?masanpham=<%=sp.getMaSanPham() %>"><input type="button" name="btmua" id="btmua" value="Mua" /></a>
      <a href="giohang_controller?action=themvaogiohang&&masanpham=<%=sp.getMaSanPham()%>"><input type="button" name="btthemvaogiohang" id="btthemvaogiohang" value="Thêm vào giỏ hàng" /></a>
    </form>      <p>&nbsp;</p></td>
  </tr>
</table>